Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(cli): speed up dev deploy with temporary automine during deploy #3130

Merged
merged 6 commits into from
Sep 6, 2024

Conversation

alvrs
Copy link
Member

@alvrs alvrs commented Sep 5, 2024

No description provided.

Copy link

changeset-bot bot commented Sep 5, 2024

🦋 Changeset detected

Latest commit: ad2d4a4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 27 packages
Name Type
@latticexyz/cli Patch
@latticexyz/world-modules Patch
mock-game-contracts Patch
@latticexyz/abi-ts Patch
@latticexyz/block-logs-stream Patch
@latticexyz/common Patch
@latticexyz/config Patch
create-mud Patch
@latticexyz/dev-tools Patch
@latticexyz/explorer Patch
@latticexyz/faucet Patch
@latticexyz/gas-report Patch
@latticexyz/protocol-parser Patch
@latticexyz/query Patch
@latticexyz/react Patch
@latticexyz/recs Patch
@latticexyz/schema-type Patch
solhint-config-mud Patch
solhint-plugin-mud Patch
@latticexyz/stash Patch
@latticexyz/store-indexer Patch
@latticexyz/store-sync Patch
@latticexyz/store Patch
@latticexyz/utils Patch
@latticexyz/world-module-metadata Patch
@latticexyz/world Patch
ts-benchmarks Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@alvrs alvrs marked this pull request as ready for review September 5, 2024 22:22
@alvrs alvrs requested a review from holic as a code owner September 5, 2024 22:22
@alvrs alvrs changed the title feat(cli): speed up local deploy by enabling automine during deploy feat(cli): speed up local deploy with temporary automine during deploy Sep 5, 2024
@alvrs alvrs changed the title feat(cli): speed up local deploy with temporary automine during deploy feat(cli): speed up dev deploy with temporary automine during deploy Sep 5, 2024
@@ -155,6 +159,10 @@ export async function runDeploy(opts: DeployOptions): Promise<WorldDeploy> {
opts.kms ? true : false,
);
}

// Reset mining mode after deploy
resetMiningMode();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be awaited?

params: [],
id: 1,
}),
}).then((res) => res.json());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need to call the rpc manually when viem has actions for this? https://viem.sh/docs/actions/test/getAutomine

await getAction(client, getAutomine, 'getAutomine')({});

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agreed, much better now

@alvrs alvrs merged commit d3ab5c3 into main Sep 6, 2024
14 checks passed
@alvrs alvrs deleted the alvrs/automine-deploy branch September 6, 2024 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants